package com.upcode.weighing.vo.req.pc;

import java.time.LocalDateTime;

public class AppEidtionRecordVo {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * app名称
     */
    private String appName;

    /**
     * 包名
     */
    private String packageName;

    /**
     * 文件id
     */
    private Long fileId;

    /**
     * 版本号
     */
    private Integer versionNo;

    /**
     * 版本名称
     */
    private String versionName;
    /**
     * 是否强制更新 0否 1是
     */

    private Integer isForceUpdate;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 源文件名称
     */
    private String origName;

    /**
     * 下载路径
     */
    private String downloadPath;

    /**
     * 启用状态  0启用 1停用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 更新内容
     */
    private String updateContent;


    private String isForceUpdateStr;



    private String statusStr;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Integer getVersionNo() {
        return versionNo;
    }

    public void setVersionNo(Integer versionNo) {
        this.versionNo = versionNo;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getIsForceUpdate() {
        return isForceUpdate;
    }

    public void setIsForceUpdate(Integer isForceUpdate) {
        this.isForceUpdate = isForceUpdate;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getOrigName() {
        return origName;
    }

    public void setOrigName(String origName) {
        this.origName = origName;
    }

    public String getDownloadPath() {
        return downloadPath;
    }

    public void setDownloadPath(String downloadPath) {
        this.downloadPath = downloadPath;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public void setIsForceUpdateStr(String isForceUpdateStr) {
        this.isForceUpdateStr = isForceUpdateStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }


    public String getIsForceUpdateStr() {
        String str = "";
        if(null!=this.isForceUpdate){
            if(0==this.isForceUpdate){
                str = "否";
            }else{
                str = "是";
            }
        }
        return str;
    }


    public String getStatusStr() {
        String str = "";
        if(null!=this.status){
            if(0==this.status){
                str = "启用";
            }else{
                str = "禁用";
            }
        }
        return str;
    }

}
